package com.zdb.demo.design.pattern.structural.flyweight;

import java.util.Random;

public class Test {
    public static void main(String[] args) {
        String[] departments = new String[]{"QA", "RD", "PM", "HR"};

        for (int i = 0; i < 20; i++) {

            String department = departments[new Random().nextInt(3)];
            Manager manager = EmployeeFactory.getManager(department);
            manager.report();
        }
    }
}
